import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
import qs from 'qs'
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(qs)
Vue.prototype.parseTime = parseTime
Vue.prototype.handleTree = handleTree
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.addDateRange = addDateRange
Vue.prototype.resetForm = resetForm
new Vue({
  router,
  store,
  // 在页面加载之前。创建全局事件总线

  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
}).$mount('#app')
